import Layout from "@/layout/index.vue";

export const conMyRoutes = [
    {
        path: '/contract',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['con:my:page'],
                path: 'my/view/:conId(\\d+)',
                component: () => import('@/views/contract/my/contractMain.vue'),
                name: 'ConMyView',
                meta: { title: '我的合同详情', activeMenu: '/contract/my' }
            },
        ]
    },
    {
        path: '/contract',
        hidden: true,
        children: [
            {
                path: 'my/draft/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/draft/contractFile.vue'),
                name: 'ConMyDraftFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'my/audit/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/audit/contractFile.vue'),
                name: 'ConMyAuditFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'my/sign/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/sign/contractFile.vue'),
                name: 'ConMySignFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'my/fulfill/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/fulfill/contractFile.vue'),
                name: 'ConMyFulfillFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'my/archiving/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/archiving/contractFile.vue'),
                name: 'ConMyArchivingFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'my/archived/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/archived/contractFile.vue'),
                name: 'ConMyArchivedFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'my/cancel/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/my/flowInfo/cancel/contractFile.vue'),
                name: 'ConMyCancelFile',
                meta: { title: '合同正文' }
            }
        ]
    }
]